package com.eelye.util.winui.base;

import com.eelye.util.winui.window.TreeView;
import com.sun.jna.Pointer;
import com.sun.jna.Structure;
import com.sun.jna.platform.win32.WinDef;

import java.util.Arrays;
import java.util.List;

public class TVITEM extends Structure {
    public int mask;
    public TreeView.HTREEITEM hItem;
    public int state;
    public int stateMask;
    public Pointer pszText;
    public int cchTextMax;
    public int iImage;
    public int iSelectedImage;
    public int cChildren;
    public WinDef.LPARAM lParam;
    public int iIntegral;
    public int uStateEx;
    public int hwnd;
    public int iExpandedImage;

    protected List<String> getFieldOrder() {
        return Arrays.asList(
                "mask", "hItem", "state", "stateMask", "pszText", "cchTextMax",
                "iImage", "iSelectedImage", "cChildren", "lParam", "iIntegral",
                "uStateEx", "hwnd", "iExpandedImage"
        );
    }

    public TVITEM() {
        super();
    }
}